package com.love.marriage.userCommissionWithdrawal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.common.interfaces.permission.DataPermission;
import com.love.marriage.userCommissionWithdrawal.entity.UserCommissionWithdrawal;
import com.love.marriage.userCommissionWithdrawal.vo.UserCommissionWithdrawalVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  用户提现回佣金额历史表 mapper
 * author:       mybatisPlus
 * createDate:   2025-01-29 19:43:00
 * version:      1.0.0
 */
@Mapper
public interface UserCommissionWithdrawalMapper extends BaseMapper<UserCommissionWithdrawal> {

    @DataPermission(table = "user_commission_withdrawal")
    Page<UserCommissionWithdrawalVo> getPage(Page<UserCommissionWithdrawalVo> page, @Param("userCommissionWithdrawalVo") UserCommissionWithdrawalVo userCommissionWithdrawalVo);

    List<UserCommissionWithdrawalVo> getList(@Param("userCommissionWithdrawalVo") UserCommissionWithdrawalVo userCommissionWithdrawalVo);

    UserCommissionWithdrawalVo queryUserCommissionWithdrawal(@Param("id") Long id);

    UserCommissionWithdrawalVo queryUserCommissionWithdrawalInfo(@Param("userCommissionWithdrawalVo") UserCommissionWithdrawalVo userCommissionWithdrawalVo);
}
